<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('index')}">{:lang('DATACENTER')}</a></li>
			<li class="active"><a>{:lang('DATACENTER_ADD')}</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20"  action="{:url('editPost')}">
            <input type="hidden"  name="id" value="{$id|default=0}"/>
			<div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>配置KEY</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" required  name="key_m" value="{$key_m|default=''}">
				</div>
			</div>
			<div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>配置名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" required name="name_m" value="{$name_m|default=''}">
				</div>
			</div>
            <div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>配置类型</label>
				<div class="col-md-6 col-sm-10">
                    <label class="radio-inline"><input type="radio" name="type_n" required value="0" <if condition="$type_n eq 0">checked</if>> 网站设置</label>
                   <label class="radio-inline"><input type="radio" name="type_n" required value="1" <if condition="$type_n eq 1">checked</if>> 系统设置</label>
                   <label class="radio-inline"><input type="radio" name="type_n" required value="10" <if condition="$type_n eq 10">checked</if>> 服务器设置</label>
                   <label class="radio-inline"><input type="radio" name="type_n" required value="100" <if condition="$type_n eq 100">checked</if>> 开房设置</label>
				</div>
			</div>
            <div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>备注</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" required name="desc" value="{$desc|default=''}">
				</div>
			</div>
			<div class="form-group">
				<label  class="col-sm-2 control-label">配置值</label>
				<div class="col-md-6 col-sm-10">
                    <textarea class="form-control" rows='20'  name="value_m">{$value_m|default=''}</textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>